#pragma once
#pragma once
#include <opencv2/opencv.hpp> //cvThreshold


namespace PatternCalc
{
	float rotationCal2(cv::Mat& checkImg);
	float rotationCal(cv::Mat& checkImg);
	std::vector<int> median_filter(std::vector<int> vec, int meanInt, bool norm = false, int scale = 51);
	void calOffsetPattern(cv::Mat& img, cv::Point2f& offsetRes, bool& useFlag);
	int degreeOfConfidence(std::vector<int> zongVector, std::vector<int> hengVector, cv::Point2i& linenum);
	int findPeaks(std::vector<int> intsVector, std::vector<float>& maxpos, std::vector<float>& maxvalue);
}

